import sys
import random

def f(k1,b1,x1,y1):
    Y=k1*x1+b1
    if y1>Y:
        r = 'above the line.'
    elif y1<Y:
        r ='below the line.'
    else:
        r = 'in the line.'
    return r

line=[[2,1]]
for i in range(9):
    line.append([random.randint(-100,100) for j in range(2)])

point=[[3,8.9]]
for i in range(1,10):
    x=-10**4*random.random()+10**4
    y=(line[i][0]*x+line[i][1])+random.choice([-1,0,1])*random.random()*100
    point.append([x,y])
    print(x,y,line[i][0]*x+line[i][1],abs(line[i][0]*x+line[i][1]-y)<1e-12)


for i  in range(10):
    fin = open('{}.in'.format(i+1),'w')
    fout = open('{}.out'.format(i+1),'w')
    print(*line[i],*point[i],sep=' ',file=fin)
    k,b = line[i]
    x,y = point[i]
    print(f(k,b,x,y),file=fout)
    fin.close()
    fout.close()
